﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace OBDUDSUtils.CNNMode
{
    /// <summary>
    /// ZLGCAN波特率与寄存器值对应关系
    /// 当前对应关系只适用于：PCI-5010-U/PCI-5020-U/USBCAN-E-U/USBCAN-2E-U
    /// </summary>
    public enum ZLGBaudRateEnum
    {
        b_1000 = 0x060003,
        b_800 = 0x060004,
        b_500 = 0x060007,
        b_250 = 0x1c0008,
        b_125 = 0x160023,
        b_100 = 0x160023,
        b_50 = 0x1c002c,
        b_20 = 0x1600b3,
        b_10 = 0x1c00e0,
        b_5 = 0x1c01c1
    }

    public enum PeakCANChannelEnum
    {
        ISABUS1 = 0x21,
        ISABUS2 = 0x22,
        ISABUS3 = 0x23,
        ISABUS4 = 0x24,
        ISABUS5 = 0x25,
        ISABUS6 = 0x26,
        ISABUS7 = 0x27,
        ISABUS8 = 0x28,

        DNGBUS1 = 0x31,

        PCIBUS1 = 0x41,
        PCIBUS2 = 0x42,
        PCIBUS3 = 0x43,
        PCIBUS4 = 0x44,
        PCIBUS5 = 0x45,
        PCIBUS6 = 0x46,
        PCIBUS7 = 0x47,
        PCIBUS8 = 0x48,
        PCIBUS9 = 0x409,
        PCIBUS10  = 0x40A,
        PCIBUS11 = 0x40B,
        PCIBUS12 = 0x40C,
        PCIBUS13 = 0x40D,
        PCIBUS14 = 0x40E,
        PCIBUS15 = 0x40F,
        PCIBUS16 = 0x410,

        USBBUS1 = 0x51,
        USBBUS2 = 0x52,
        USBBUS3 = 0x53,
        USBBUS4 = 0x54,
        USBBUS5 = 0x55,
        USBBUS6 = 0x56,
        USBBUS7 = 0x57,
        USBBUS8 = 0x58,
        USBBUS9 = 0x59,
        USBBUS10 = 0x5A,
        USBBUS11 = 0x5B,
        USBBUS12 = 0x5C,
        USBBUS13 = 0x5D,
        USBBUS14 = 0x5E,
        USBBUS15 = 0x5F,
        USBBUS16 = 0x510,

        PCCBUS1 = 0x61,
        PCCBUS2 = 0x62,

        LANBUS1 = 0x801,
        LANBUS2 = 0x802,
        LANBUS3 = 0x803,
        LANBUS4 = 0x804,
        LANBUS5 = 0x805,
        LANBUS6 = 0x806,
        LANBUS7 = 0x807,
        LANBUS8 = 0x808,
        LANBUS9 = 0x809,
        LANBUS10 = 0x80A,
        LANBUS11 = 0x80B,
        LANBUS12 = 0x80C,
        LANBUS13 = 0x80D,
        LANBUS14 = 0x80E,
        LANBUS15 = 0x80F,
        LANBUS16 = 0x810,
    }
}
